<section class="content">
    <div>
        <div class="row">
            <div class="col-md-6">
                <div class="box box-success ">
                    <div class="box-header with-border">
                        <h3 class="box-title">我的个人信息</h3>
                    </div>
                    <div class="box-body" style="padding:8px;line-height:1.8">
                        您好，{$userInfo.username}<br/>
                        所属角色：{$userInfo.rolename} <br/>
                        最后登录时间：
                        <if condition="$userInfo['lastlogintime'] gt 0">{$userInfo.lastlogintime|date='Y-m-d
                            H:i:s',###}
                        </if>
                        <br/>
                        最后登录IP：{$userInfo.lastloginip} <br/>
                    </div>
                </div>
            </div>

        </div>
        <if condition="session('userid') eq 1">
            <div class="row">
                <div class="col-md-6">
                    <div class="box box-warning">
                        <div class="box-header with-border">
                            <div class="box-title">服务器参数</div>
                        </div>
                        <div class="box-body" style="padding:8px;line-height:1.8">
                            服务器域名/IP地址：{$_SERVER['SERVER_NAME']}(
                            <if condition="DIRECTORY_SEPARATOR eq '/'">{$_SERVER['SERVER_ADDR']}
                                <else/>
                                {:@gethostbyname($_SERVER['SERVER_NAME'])}
                            </if>
                            ) <br/>
                            服务器标识：
                            <if condition="$sysinfo['win_n'] neq ''">{$sysinfo.win_n}
                                <else/>
                                {:@php_uname()}
                            </if>
                            <br/>
                            服务器操作系统：{$os.0} &nbsp;内核版本：
                            <if condition="DIRECTORY_SEPARATOR eq '/'">{$os.2}
                                <else/>
                                {$os.1}
                            </if>
                            <br/>
                            服务器解译引擎：{$_SERVER['SERVER_SOFTWARE']} <br/>
                            服务器语言：{:getenv("HTTP_ACCEPT_LANGUAGE")} <br/>
                            服务器端口：{$_SERVER['SERVER_PORT']} <br/>
                            服务器主机名：
                            <if condition="DIRECTORY_SEPARATOR eq '/'">{$os.1}
                                <else/>
                                {$os.2}
                            </if>
                            <br/>
                            管理员邮箱：{$_SERVER['SERVER_ADMIN']} <br/>
                            绝对路径：{:SITE_DIR} <br/>
                            上传文件最大限制（upload_max_filesize）：{:get_cfg_var('upload_max_filesize')} <br/>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="box box-warning">
                        <div class="box-header with-border">
                            <div class="box-title">服务器实时数据</div>
                        </div>
                        <div class="box-body" style="padding:8px;line-height:1.8">
                            <eq name="sysinfo.sysReShow" value="show">
                                服务器当前时间：<span>{$sysinfo.stime}</span> <br/>
                                服务器已运行时间：<span>{$sysinfo.uptime}</span> <br/>
                                总空间：{$sysinfo.DiskTotal}&nbsp;GB &nbsp;&nbsp;&nbsp;&nbsp;<span
                                    title="显示的是网站所在的目录的可用空间，非服务器上所有磁盘之可用空间！">可用空间</span>： <font color='#CC0000'><span>{$sysinfo.freeSpace}</span></font>&nbsp;GB<br/>
                                CPU型号 [{$sysinfo.cpu.num}核]：{$sysinfo.cpu.model} <br/>
                                内存使用状况：物理内存：共<font color='#CC0000'>{$sysinfo.TotalMemory}</font>, 已用<font
                                    color='#CC0000'><span>{$sysinfo.UsedMemory}</span></font>, 空闲<font
                                    color='#CC0000'><span>{$sysinfo.FreeMemory}</span></font>, 使用率<span>{$sysinfo.memPercent}</span>
                                <br/>
                                <div class="bar">
                                    <div class="barli_green" style="width:{$sysinfo.memPercent}">&nbsp;</div>
                                </div>
                                <if condition="$sysinfo['CachedMemory'] gt 0">
                                    Cache化内存为 <span>{$sysinfo.CachedMemory}</span>,
                                    使用率<span>{$sysinfo.memCachedPercent}</span> % | Buffers缓冲为
                                    <span>{$sysinfo.Buffers}</span>
                                    <div class="bar">
                                        <div class="barli_blue" style="width:{$sysinfo.barmemCachedPercent}">
                                            &nbsp;</div>
                                    </div>
                                    真实内存使用 <span>{$sysinfo.memRealUsed}</span>,
                                    真实内存空闲<span>{$sysinfo.memRealFree}</span>, 使用率<span>{$sysinfo.memRealPercent}</span>
                                    %
                                    <div class="bar_1">
                                        <div class="barli_1" style="width:{$sysinfo.barmemRealPercent}">&nbsp;</div>
                                    </div>
                                </if>
                                <if condition="$sysinfo['TotalSwap'] gt 0">
                                    SWAP区：共{$sysinfo.TotalSwap}, 已使用<span>{$sysinfo.swapUsed}</span>, 空闲<span>{$sysinfo.swapFree}</span>,
                                    使用率<span>{$sysinfo.swapPercent}</span> %
                                    <div class="bar">
                                        <div class="barli_red" style="width:{$sysinfo.barswapPercent}">&nbsp;</div>
                                    </div>
                                </if>
                                系统平均负载：<span>{$sysinfo.loadAvg}</span>
                                <else/>
                                无法获取当前服务器实时数据
                            </eq>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="box box-danger">
                        <div class="box-header with-border">
                            <div class="box-title">网络使用状况</div>
                        </div>
                        <div class="box-body" style="padding:8px;line-height:1.8">
                            <neq name="net_state" value="">
                                {$net_state}
                                <else/>
                                无法获取当前服务器网络使用信息
                            </neq>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="box box-danger">
                        <div class="box-header with-border">
                            <div class="box-title">系统说明</div>
                        </div>
                        <div class="box-body" style="padding:8px;line-height:1.8">
                            当前系统版本：{:C('SYSTEM_VERSION')}<br/>
                            ThinkPHP：{$Think.version}<br/>
                        </div>
                    </div>
                </div>
            </div>
        </if>
    </div>
</section><!-- /.content -->